package com.example.aidocengine.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("operation_step_validation")
public class OperationStepValidation {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String operationStep;
    
    private Boolean isValid;
    
    private String errorMessage;
    
    private Long matchedTemplateId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime validationTime;
    
    private Long documentId;
    
    // Word文档位置信息，用于错误信息插入
    private Integer tableIndex;
    
    private Integer rowIndex;
    
    private Integer commanderColumnIndex;
}